package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Deepika
 * Date: 5/31/13
 * Time: 12:24 AM
 * To change this template use File | Settings | File Templates.
 */
class Login {
    private String username;
    private Boolean loggedIn;

    Login(){
        this.username = "none";
        loggedIn = false;
    }

    public void setLogin(String username){
        this.username = username;
        this.loggedIn = true;
    }

    public String getUsername(){
        return(this.username);
    }

    public Boolean getLogin(String username){
        if (this.username.equals(username)) return(this.loggedIn);
        return(false);
    }

}